package com.own.business.wechat.official.entity.form;

import com.own.business.wechat.base.exception.WechatBaseException;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;

/**
 * WechatShareSignForm
 *
 * @author chenxueli
 * @date 2023-09-26 09:37:00
 */
@Data
public class WechatShareSignForm implements Serializable {

    @Schema(title = "需要分享签名的url")
    private String url;

    public void check() {
        if (StringUtils.isBlank(url)) {
            throw new WechatBaseException("url不能为空");
        }
    }

}
